<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
<%@ include file="../common.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/tld/orderStatus.tld" prefix="os" %>
<script type="text/javascript" src="<%=basePath%>js/datePicker/WdatePicker.js" defer="defer"></script>
<script type="text/javascript" src="js/artDialog/artDialog.js?skin=idialog"></script>
<script type="text/javascript" src="js/artDialog/plugins/iframeTools.js"></script>
</head>
<body>
 <form action="rise_list.shtml" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><div class="titlebt">升舱信息</div></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
        	<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mytable">
        		<tr><th class="left" width="15%">选择条件</th><td class="border-top">
        		<input type="radio" name="riseCabin.title" ${riseCabin.title==1?'checked':''} checked value="1" id="ro_pnr" /><label for="ro_pnr">升舱编码</label>
        		<input type="radio" name="riseCabin.title" ${riseCabin.title==2?'checked':''} value="2" id="ro_flight" /><label for="ro_flight">升舱航班号</label>
        		<input type="radio" name="riseCabin.title" ${riseCabin.title==3?'checked':''} value="3" id="ro_person" /><label for="ro_person">乘客信息</label></td></tr>
        		<tr><th class="left" width="15%">输入条件</th><td><input name="riseCabin.decription" value="${riseCabin.decription}" /></td></tr>
        		<tr><th class="left" width="15%">选择日期</th><td><input name="riseCabin.startTime" value="${riseCabin.startTime}" class="Wdate" readonly="readonly" onClick="WdatePicker({maxDate:'%y-%M-%d'})"/> ~
        		 <input name="riseCabin.endTime" value="${riseCabin.endTime}" class="Wdate" readonly="readonly" onClick="WdatePicker({max:'%y-%M-%d'})"/></td></tr>
        		<tr>
        			<td style="text-align: center;" class="left" colspan="3"><button id="btn_search" type="submit" class="Submit">立即查询</button>
        			<button id="btn_reset" onclick="clearAll(this.form);return false;" type="submit" class="Submit">清空</button></td>
        		</tr>
        	</table>
    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
        	<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mytable">
        		<tr><th class="left">系统订单号</th><th>乘客姓名</th><th>升舱编码</th><th>升舱日期</th><th>升舱时间</th><th>升舱航班号</th><th>创建日期</th><th>订单状态</th>
        		<th>用户支付</th>
        		<th>操作</th>
        		</tr>
        		<s:if test="#request.riseCabins!=null && #request.riseCabins.size()>0">
        		<s:iterator value="#request.riseCabins" var="riseCabin">
	        	<tr><td class="left">${cabinNo}</td>
	        		<td>${passengers}</td>
	        		<td>${pnr}</td>
	        		<td><s:date name="flgihtDate" format="yyyy年MM月dd日"/></td>
	        		<td><s:date name="departTime" format="HH:mm"/></td>
	        		<td>${flightNo}</td>
	        		<td><s:date name="createTime" format="yyyy年MM月dd日 HH:mm:ss"/></td>
	        		<td><os:riseCabinState state="${orderStatus}"/>
	        		</td>
	        		<td><s:if test="cardPay==0"><font color="red">未支付</font></s:if>
	        		<s:else><font color="green">支付完成</font></s:else>
	        		</td>
	        		<td>
	        			<a href="javascript:void(0);" onclick="showDetail('${id}');">查看</a>
	        		</td> 
        		</tr>	
        		</s:iterator>
        		<tr>
        			<td class="left" colspan="10">${pageBean.pageToolsMenu}</td>
        		</tr>
        		</s:if>
        		<s:else>
					<tr><td class="left" colspan="10" align="center"
							style="background: #FAFBFC repeat-x; height: 28">
							未搜索到符合条件的信息……</td>
				</tr></s:else>
        	</table>
    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
 </form>
 <script type="text/javascript">
 	showDetail=function(id){
 		art.dialog.load("rise_getRiseCabinObject.shtml?id="+id,true);
 	}
 </script>
</body>
</html>